home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 11
/
Cream of the Crop 11-2.iso
/
extra_2
/
nadir11.zip
/
FILE.N
< prev
next >
Wrap
Text File
|
1995-11-08
|
505b
|
19 lines
Define TestFile()
/*
reads c:\autoexec.bat, prints to the screen, and
copies it to a file \tmp\junk
*/
{
if (!(infile = FileOpen(`c:\autoexec.bat`, "read")))
Signal("Could not open input file");
if (!(outfile = FileOpen(`\tmp\junk`, "write")))
Signal("Could not open output file");
while (!FileLineGet(infile, &buff)) {
Print(buff, "\n");
FilePrint(outfile, buff, "\n");
}
FileClose(infile);
FileClose(outfile);
}
TestFile